import OtherOp from '@/views/Layout/components/OtherOp.vue'
import UserOp from '@/views/Layout/components/UserOp.vue'
import Layout from '@/views/Layout/index.vue'
import Login from '@/views/Login/index.vue'
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: 'layout',
            component: Layout,
            children: [
                {
                    path: '/user-op',
                    component: UserOp
                },
                {
                    path: '/other-op',
                    component: OtherOp
                }
            ]
        },
        {
            path: '/login',
            name: 'login',
            component: Login
        }
    ]
})
export default router
